//var layer;
$(function(){
    var op = {
        id:"gdTable",
        columns: [{
            radio: true
        },
            {
                field: 'roleName',
                title: '角色名称'
            },
            {
                field: 'state',
                title: '状态',
                sortable: true,
                formatter: function(value, item, index) {
                    for(var key in datas){
                        if(value == datas[key].dictValue){
                            return datas[key].dictText;
                        }
                    }
                }
            },
            {
                field: 'createTime',
                title: '创建时间',
                sortable: true
            },
            {
                field: 'createUser',
                title: '创建用户',
                sortable: true
            }],
        title:"角色管理",
        addUrl:'/role/add',
        editUrl:'/role/edit',
        removeUrl:'/role/remove',
        url:'/role/findPage'
    }
    $.table.init(op);
})
